# Terminal Emojis 🕷
---

Bash script that prints emojis in a terminal.<br>

---
## Overview 🐙
---

* Make sure you have installed the proper fonts like e.g: Symbola, DingBats, FreeFont etc. or otherwise the emoji's cannot be printed on the terminal 👀.

* You can see the entire list of emojis in the '[Unicode characters specification][specs]' 👁.


* Print a single emoji on the terminal like this:

 > \> echo -e '\U1F604'<br>
 >  😄

* Unicode characters and thus emojis are usually given in hexadecimal numbers.<br>
In order to loop over a range of hexadecimal numbers in the shell you can convert the hexadecimal numbers into decimal ones, loop over those and format them into a hexadecimal string like this:

 > \> for i in {9312..9316};<br> do hex=$(printf "%02X" ${i});<br> echo -e "U+${hex}";<br> done

* The output of the script can be seen [here](emoji.txt).
If your browser cannot render it you can open it in a terminal 😉.

* Some fonts are hard to come by.<br>
Did you know that you can extract fonts embedded in a pdf file?<br>
See [here][extractFont] for more detailed information. Just telling in case you should need it 😋.

---
## References 🤓
---
* http://unicode.org/emoji/charts/full-emoji-list.html
* https://www.unicode.org/emoji/charts/full-emoji-modifiers.html
* https://stackoverflow.com/questions/5517500/generating-hex-numbers-of-a-certain-range
* https://www.gnu.org/software/freefont/ranges/symbols.html
* https://www.dafont.com/mtheme.php?id=7
* https://www.1001freefonts.com/de/dingbats-fonts.php
* https://dn-works.com/wp-content/uploads/2023/UFAS010223/Symbola.pdf
* https://stackoverflow.com/questions/3488042/how-can-i-extract-embedded-fonts-from-a-pdf-as-valid-font-files
* https://unicode-explorer.com/emoji/
* https://www.unicode.org/charts/PDF/U2460.pdf
* https://www.unicode.org/charts/PDF/U25A0.pdf
* https://www.unicode.org/charts/PDF/Unicode-5.1/U51-2B00.pdf
* https://www.unicode.org/charts/PDF/Unicode-3.2/U32-2700.pdf
* https://www.unicode.org/charts/PDF/U1F300.pdf"
* https://www.unicode.org/charts/PDF/U2600.pdf
* https://unicode.org/Public/emoji/15.1/emoji-zwj-sequences.txt
* https://unicode.org/Public/emoji/15.1/emoji-test.txt
* https://unicode.org/Public/emoji/15.1/emoji-sequences.txt
* https://www.iemoji.com/view/emoji/40/symbols/red-heart

---
## Licence 🖋
---
* GNU GENERAL PUBLIC LICENSE Version 3

---
## Author: 🐬
---
* kaulquappe (https://notabug.org/kaulquappe/)

# 💦

[extractFont]:  https://stackoverflow.com/questions/3488042/how-can-i-extract-embedded-fonts-from-a-pdf-as-valid-font-files
[fullList]: https://www.unicode.org/emoji/charts/full-emoji-modifiers.html
[specs]: http://unicode.org/emoji/charts/full-emoji-list.html
